package hw875747.lesson1.第一题;

public class ThreadPrint extends Thread {
	private int start = 0;
	private int end = 0;
	public ThreadPrint(int start,int end){
		this.start = start;
		this.end = end;
	}
	public void run() {
		for(int i=this.start;i<this.end+1;i++){
			System.out.println(i);
		}
	}
	public static void main(String[] args){
		ThreadPrint t1 = new ThreadPrint(1,50);
		ThreadPrint t2 = new ThreadPrint(50,100);
		t2.start();
		t1.start();
		
	}
}
